<template>
	<view class="content">
		<view class="empty">
			<image src="/static/success.png" mode="widthFix"></image>
			<view class="empty-tips">
				支付成功
			</view>
			<button class="surebtn" @click="sureit">确定</button>
		</view>
	</view>
</template>
	<script>
	export default {
		data() {
			return {
				type:''
			}
		},
		onLoad(options) {
			let that = this
			that.type = options.type
		},
		methods: {
			sureit(){
				let that = this
				if(that.type=='business'){
					uni.switchTab({
						url:'../tab/business'
					})
				}else{
					uni.switchTab({
						url:'../tab/my'
					})
				}
			}
		}
	}
	
</script>

<style>
	.content{min-height: 100vh;background-color: #F9F9F9;}
	.empty {
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100vh;
		padding-bottom: 100upx;
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		background: #fff;
	
	}
	
	.empty image {
		width: 160upx;
		margin-bottom: 30upx;
	}
	
	.empty-tips {
		display: flex;
		font-size: 30upx;
		color: #666;
	}
	.surebtn{display: block;font-size: 30upx;width:456upx;padding: 0;background:#1D84E8;color: #fff;margin: 140upx auto 0;}
	.surebtn::after{border: none;}
</style>
